<?php
// required
	$is_dir = is_dir($module->root_path().$file);

// title
	?><h1 class="edit"><?php echo ($is_dir) ? $lang->get('edit-folder') : $lang->get('edit-file'); ?></h1><?php

// form
	?>
	<form name="frm" method="post" action="<?php echo $cosa->system('base-url'); ?>/?m=<?php echo $m; ?>&act=edit&file=<?php echo $file; ?>">
	<input type="hidden" name="editSbm" value="1" />
	<input type="hidden" name="original" value="<?php echo $file; ?>" />
	<?php if(count($cats) == 1) { ?><input type="hidden" name="cat_<?php echo $cats[0]['id']; ?>" value="1" /><?php } ?>
	<ul>
		<li><label for="new"><?php $lang->put('ff_name'); ?></label>
			<?php echo $module->getDirFromFile($file); ?>/ <input type="text" name="new" value="<?php echo $module->fileName($file); ?>" class="fld" />
		</li>
		<li class="sbmt">
			<input type="submit" value="<?php echo ($is_dir) ? $lang->get('edit-folder') : $lang->get('edit-file'); ?>" class="sbmt" />
		</li>
	</ul>
	</form>
